﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using Models;

namespace BLL
{
    public class CarInfoBLL
    {
        /// <summary>
        /// 用于UI调用查询方法
        /// </summary>
        /// <returns></returns>
        public DataTable Dat()
        {
            return new CarInfoDAL().Dat();
        }
        public DataTable Dat(int name)
        {
            return new CarInfoDAL().Tiao(name);
        }
        public bool Shan(int id)
        {
            return new CarInfoDAL().Shan(id);
        }
        public bool Insert(CarInfoModels c) {
            return new CarInfoDAL().Insert(c);
        }
        public DataTable TianJian(string name)
        {
            return new CarInfoDAL().TiaoJian(name);
        }
        public CarInfoModels C (string s)
        {
            return new CarInfoDAL().Car(s);
        }
        public bool Update(CarInfoModels c ,string s)
        {
            return new CarInfoDAL().Update(c,s);

        }
    }
}
